package com.chuantou.yuba.api.to;

import java.util.List;

import com.google.gson.annotations.SerializedName;

public class FishingDetailDataTO extends BaseTO {
	@SerializedName("data")
	private FishingDetailTO data;

	public FishingDetailTO getData() {
		return data;
	}

	public void setData(FishingDetailTO data) {
		this.data = data;
	}

	public FishingTO getFishingTO() {
		return this.data == null ? null : this.data.getDetail();
	}

	@Override
	public boolean hasNextPage() {
		return data != null && data.hasNextPage();
	}

	@Override
	public int getCurrentPage() {
		return data == null ? 0 : data.getCurrentPage();
	}

	public List<FishingUserTO> getFishingUsers() {
		return this.data == null ? null : this.data.getMembers();
	}

	public List<FishingCommentTO> getFishingComments() {
		return this.data == null ? null : this.data.getComments();
	}
	
	public int getCommentCount(){
		return this.data == null ? 0 : this.data.getCommentCount();
	}
}
